package com.guangyunl.controller;

import com.guangyunl.model.Student;
import com.guangyunl.service.StudentService;
import com.guangyunl.view.StudentView;

public class StudentController {

    StudentService studentService = new StudentService();
    StudentView studentView = new StudentView();

    // 显示菜单
    public void showStuCon(){
        studentView.stuView();
    }
    // 选择功能
    public void selectOpCon(){
        studentService.selectOperate();
    }


    // 添加学生
    public Student[] createStuCon(Student[] students){
        students = studentService.createStu(students);
        return students;
    }
//    public void createStuCon(){
//        studentService.createStu();
//    }


    // 查看学生信息
    public void searchStuCon(Student[] students){
        studentService.printStu(students);
    }


}
